<!DOCTYPE html>
<html>
    <head>
        <style type="text/css"> 
            #div1{
                width:200px;
                height:200px;
                padding:20px;
                margin:10px;
                border:5px soid yellow;
                box-sizing: border-box;/*加上 box-sizing: border-box;后，div模型设置为IE盒*/
                background-color: greenyellow;
            }
            #div2{
                width:200px;
                height:200px;
                padding:20px;
                margin:10px;
                border:5px solid yellow;
                background-color: red;
            }
        </style>
    </head>
    <body>
        <div id="div1">IE盒模型</div>
        <div id="div2">标准盒模型</div>
    </body>
</html>